.index {
    position: absolute;
    width: 100%;
    padding: 20rpx;
    box-sizing: border-box;
}

/* 表单容器样式 */
.formContainer {
    background: #fff;
    border-radius: 12rpx;
    padding: 30rpx;
    margin-top: 20rpx;
    box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
}

/* 表单项样式 */
.formItem {
    display: flex;
    flex-direction: column;
    margin-bottom: 30rpx;
}

/* 表单标签样式 */
.label {
    font-size: 28rpx;
    color: #333;
    margin-bottom: 15rpx;
    font-weight: 500;
}

/* 输入框样式 */
.input {
    width: 100%;
    height: 90rpx;
    border: 2rpx solid #e8e8e8;
    border-radius: 8rpx;
    padding: 0 20rpx;
    box-sizing: border-box;
    font-size: 28rpx;
    color: #333;
    background: #fff;

    :global(input) {
        height: 100%;
    }

    &:focus {
        border-color: #1989fa;
        outline: none;
    }
}

/* 上传容器样式 */
.uploadContainer {
    display: flex;
    align-items: center;
}

/* 上传按钮样式 - 正方形图片样式 */
.uploadButton {
    width: 200rpx;
    height: 200rpx;
    border: 2rpx dashed #d9d9d9;
    border-radius: 8rpx;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.3s ease;

    &:hover {
        border-color: #1989fa;
        background-color: #f0f9ff;
    }

    &::before {
        content: '+';
        font-size: 48rpx;
        color: #d9d9d9;
        transition: color 0.3s ease;
    }

    &:hover::before {
        color: #1989fa;
    }
}

/* 文本控制按钮容器样式 */
.textControlButtons {
    display: flex;
    gap: 25rpx;
    /* 增大按钮之间的间距 */
    margin-top: 20rpx;
    flex-wrap: wrap;
}

/* 单个控制按钮样式 */
.controlButton {
    /* 移除flex: 1，设置为自然宽度 */
    white-space: nowrap;
    padding: 0 30rpx;
    height: 80rpx;
    font-size: 28rpx;
    line-height: 80rpx;
    margin: 0;
    background: linear-gradient(135deg, #fd7901, #ff9a3c);
    color: #fff;
    border: 2rpx solid #fd7901;
    border-radius: 40rpx;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-weight: 500;

    &:hover {
        background: linear-gradient(135deg, #ff9a3c, #fd7901);
        transform: translateY(-2rpx);
        box-shadow: 0 4rpx 12rpx rgba(253, 121, 1, 0.3);
    }

    &:active {
        background: linear-gradient(135deg, #e66c00, #d15e00);
        transform: translateY(0);
        box-shadow: none;
    }

    // 覆盖默认按钮样式
    :global(.btn) {
        height: 80rpx;
        line-height: 80rpx;
        border-radius: 40rpx;
    }
}

/* 提交按钮样式 */
.submitButton {
    width: 40%;
    /* 进一步减小按钮宽度 */
    height: 100rpx;
    font-size: 36rpx;
    line-height: 100rpx;
    border-radius: 20rpx;
    /* 减小圆角 */
    margin-left: auto;
    /* 水平居中 */
    margin-right: auto;
    display: flex;
    /* 启用flex布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    background: #6c63ff !important;
    /* 紫色背景 */
    color: #fff;
    margin-top: 60rpx;
    /* 进一步增大上边距 */
    margin-bottom: 30rpx;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4rpx 16rpx rgba(108, 99, 255, 0.3);

    &:hover {
        background: #5a51e5;
        transform: translateY(-2rpx);
        box-shadow: 0 6rpx 20rpx rgba(108, 99, 255, 0.4);
    }

    &:active {
        background: #4d44cc;
        transform: translateY(0);
        box-shadow: 0 2rpx 10rpx rgba(108, 99, 255, 0.3);
    }
}

/* 按钮图标样式 */
.buttonIcon {
    margin-right: 20rpx;
}

/* 空状态容器样式 */
.emptyContainer {
    margin: 80rpx auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 覆盖NutUI Empty组件的文本样式 */
.emptyContainer :global(.nut-empty-description) {
    font-size: 36rpx;
    color: #ff4d4f;
    font-weight: 600;
    margin-top: 30rpx;
}

/* 错误内容容器样式 - 确保最小高度并让底部组件显示在底部 */
.errorContentWrapper {
    min-height: calc(100vh - 460rpx);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.designElements {
    display: flex;
    gap: 30rpx;
    margin: 40rpx 0;
}

.designCircle {
    width: 30rpx;
    height: 30rpx;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c63ff 0%, #8c84ff 100%);
    animation: float 3s ease-in-out infinite;
}

.designCircle:nth-child(2) {
    animation-delay: 0.5s;
    width: 20rpx;
    height: 20rpx;
}

.designCircle:nth-child(3) {
    animation-delay: 1s;
    width: 25rpx;
    height: 25rpx;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20rpx);
    }
}

.tipText {
    font-size: 28rpx;
    color: #666;
    text-align: center;
    margin-bottom: 40rpx;
    padding: 0 40rpx;
}